/* @override http://localhost:8080/static/contest.css */

/* These styles have been tuned for when the page is embedded */

/* @group common elements */

* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #666;
}

#main {
  	width: 618px;
  	margin: 0 auto;
  	padding: 0 0 0 18px;
}

#content {
    border: 1px solid #B8B8B8;
    -webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	padding: 10px 23px 0 23px;
}

.title {
	font-family: Georgia, "Times New Roman", Times, serif;
	line-height: 30px;
	font-size: 26px;
	font-weight: normal;
    margin: 0 0 0.5em;
    border-bottom: 1px solid #ececec;
}

.title, .author, .winner, .contestHeader, .ranking,
.captionCreated, .submissionDeadline {
    color: #900;
}

.subtitle {
  font-size: 11px;
  color: #666;
}

.nav {
    margin: 1em 0;
    text-align: center;
}
.nav .prev {
    float: left
}
.nav .next {
    float: right;
}

/* @end */

/* @group main contest page elements */

.captionImage {
    padding: 10px 0;
}

img.captionImage, .captionImage img {
    width: 100%;
}

.explanation {
}

.createCaption {
    text-align: center;
    margin: 20px 0;
}

.contestHeader {
    font-size: 18px;
    font-weight: bold;
}

.contestHeader, .winner, .entry {
    margin-top: 20px;
    border-top: 1px solid #ececec;
    padding-top: 20px;
}

.winner {
    font-weight: bold;
}

.ranking {
    font-weight: bold;
}

.votes {
    float: left;
    color: blue;
    font-weight: normal;
    padding-right: 20px;
}

.votable {
    position: relative;
}

.voter {
    cursor: pointer;
    position: absolute;
    bottom: 4px;
    left: -39px;
    padding: 10px;
    -webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    color: #0073EA;
    border-top: 2px solid transparent;
    font-weight: bold;
    font-size: 20px;
    background: #EFEFEF;
    border: solid #0073EA 1px;
    border-right: 2px solid transparent;
}

.voter:hover {
   color: #EFEFEF;
   background: #08F;
}

.voter.voted, .voter.voted:hover {
    color: #EFEFEF;
    background: #0073EA;
}

.shareButtons {
    height: 30px;
    padding-top: 5px;
}

/* @end */

/* @group entry creation form */

#creatememe {
    display: none;
}

#makertable {
    width: 100%;
}

.buttonDiv {
    text-align: center;
}

#creatememe table td {
    vertical-align: middle;
    padding: 9px 0 0 0;
}

#makertable, #preview, .buttonDiv {
    margin-bottom: 15px;
}

.label {
    width: 124px;
}

.alignButtons {
    margin-left: 16px;
}

.alignButton {
    line-height: 27px;
}


#makertable tr {
    vertical-align: middle;
}

#preview {
    text-align: center;
    position: relative;
    min-height: 400px;
}

.preview {
    position: relative;
    top: 0px;
    width: 100%;
}

.previewOverlay {
    position: absolute;
}

#previewtext {
    display: none;
}

#memeimage, #previewtext {
    margin: auto;
}

/* @group alignment buttons */

.kd-button {
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
    float: left;
    text-align: center;
    vertical-align: baseline;
    height: 27px;
    -webkit-transition: all 0.218s;
    -moz-transition: all 0.218s;
    -o-transition: all 0.218s;
    transition: all 0.218s;
    background-color: whiteSmoke;
    background-image: -webkit-gradient(linear,left top,left bottom,from(whiteSmoke),to(#F1F1F1));
    background-image: -webkit-linear-gradient(top,whiteSmoke,#F1F1F1);
    background-image: -moz-linear-gradient(top,whiteSmoke,#F1F1F1);
    background-image: -ms-linear-gradient(top,whiteSmoke,#F1F1F1);
    background-image: -o-linear-gradient(top,whiteSmoke,#F1F1F1);
    background-image: linear-gradient(top,whiteSmoke,#F1F1F1);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f5f5',EndColorStr='#f1f1f1');
}

.kd-button.selected {
    background-color: #EEE;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#EEE),to(#E0E0E0));
    background-image: -webkit-linear-gradient(top,#EEE,#E0E0E0);
    background-image: -moz-linear-gradient(top,#EEE,#E0E0E0);
    background-image: -ms-linear-gradient(top,#EEE,#E0E0E0);
    background-image: -o-linear-gradient(top,#EEE,#E0E0E0);
    background-image: linear-gradient(top,#EEE,#E0E0E0);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#EEEEEE',EndColorStr='#E0E0E0');
    -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
    -moz-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
    box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #CCC;
}

.kd-button:hover, .kd-button.hover {
  border: 1px solid #C6C6C6;
  -webkit-transition: all 0.0s;
  -moz-transition: all 0.0s;
  -o-transition: all 0.0s;
  transition: all 0.0s;
  background-color: #f8f8f8;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f8f8f8',EndColorStr='#f1f1f1');
  -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
  box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
}
.kd-button:active, .kd-button {
  background-color: #f6f6f6;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -o-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: linear-gradient(top,#f6f6f6,#f1f1f1);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f6f6f6',EndColorStr='#f1f1f1');
  -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
}

.kd-button.small {
    min-width: 34px;
    width: 34px;
    padding: 0;
}

.kd-button.left {
    border-right-color: transparent;
    margin-right: 0;
    -webkit-border-radius: 2px 0 0 2px;
    -moz-border-radius: 2px 0 0 2px;
    border-radius: 2px 0 0 2px;
}

.kd-button.mid {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
}

.kd-button.right {
    margin-left: 0;
    -webkit-border-radius: 0 2px 2px 0;
    -moz-border-radius: 0 2px 2px 0;
    border-radius: 0 2px 2px 0;
    margin-left: -1px;
}

.kd-button img {
    display: inline-block;
    margin: 2px 0 0;
    opacity: 0.667;
    margin-left: 0px;
    margin-right: 0px;
    vertical-align: middle;
    width: 21px;
    height: 21px;
}

/* @end */



/* @end */

/* @group misc elements */

.photoCredit {
    font-size: 10px;
    padding: 10px 0;
}

.gPlusShare,
.facebookShare,
.tweet {
    float: left;
}

.captionCreated {
    font-weight: bold;
}

span.completed {
    font-size: 12px;
}



/* @end */

/* @group admin page elements */

.contest {
    margin-top: 2em;
}

.contest legend {
    font-size: 18px;
    font-weight: bold;
}

.contest p.notice {
    color: #900;
}

.contest.completed {
    color: #999;
}

.thumbnailImage {
    float: right;
    width: 200px;
}



/* @end */

/* @group entry review page elements */

.review {
    border-spacing: 0;
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.review tr.even {
    background-color: #eee;
}
.review td {
    vertical-align: top;
    padding: 1em;
}
.review td.text {
    min-width: 60%;
}
.review td.text p {
    margin: 0 0 0.5em;
}
.review td.text hr {
    margin: 0.5em 0;
    border: none;
    border-top: 1px dashed #ccc;
}
.review td.contest {
    text-align: center;
}
.review img {
    height: 100px;
}

/* @end */

